define [
  'chaplin'
  'views/base/view'
], (Chaplin, BaseView) ->

  'use strict'

  class CollectionView extends Chaplin.CollectionView

    # Extends also BaseView
    # =============================================================

    # Override Attributes
    # =============================================================

    listSelector : 'table tbody'
    container    : '#module-container'

    # Override Functions
    # =============================================================

    initialize: ->
      super
      @collection.fetch()

    render: ->
      Chaplin.View.prototype.render.apply @, arguments
      super
      @publishEvent 'load:hide'

    getTemplateFunction: BaseView::getTemplateFunction